import { createRouter, createWebHistory } from 'vue-router';
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
        path: '/',
        name: 'welcome',
        component: () => import('../views/WelcomeView.vue'),
      },
      {
        path: '/productList',
        name: 'productList',
        component: () => import('../views/product/index.vue')
      },
      {
        path: '/userList',
        name: 'userList',
        component: () => import('../views/user/index.vue')
      },
      {
        path: '/orderList',
        name: 'orderList',
        component: () => import('../views/order/index.vue')
      }
  ]
})

export default router
